# -*- coding: utf-8 -*-
class bankPage():
    def __init__(self,driver):
        self.driver=driver
    # 银行账户
    def btnBankAcc(self):
        return self.driver.find_elements_by_class_name('f-accordion-header')[2]
        # self.driver.find_elements_by_css_selector(".f-accordion-header.f-unselectable")[2]
    # 历史明细
    def btnHistory(self):
        return self.driver.find_elements_by_class_name('node-text')[16]
    # 下载
    def btnDownLoad(self):
        return self.driver.find_element_by_id('custButton6')
    # 导入
    def btnImport(self):
        return self.driver.find_element_by_id('custButton5')
    # 添加附件
    def btnSWUpload(self):
        return self.driver.find_element_by_xpath('//*[@id="SWFUpload_0"]')
    # 上传
    def btnUpload(self):
        return self.driver.find_element_by_id('upload')
